﻿@model TraCuuThuatNgu.Models.LogOnModel
<div id="logon-popup" class="ui-dialog">
    <div class="close-button">
        <a href="#" class="close-popup">
            <img src="@Url.Content("~/Content/img/icons/bb/ic_cancel.png")" alt="Tra cứu thuật ngữ" />
        </a>
    </div>
    <div class="logon-wapper">
        <div class="logon-title">
            <h2>
                ĐĂNG NHẬP</h2>
        </div>
        <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
        <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
        @Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
        @using (Html.BeginForm("LogOn", "Account", new { returnUrl = Request.RawUrl }))
        {               
            <div class="logon-form">
                <div class="editor-label">
                    Tên đăng nhập
                </div>
                <div class="editor-field">
                    @Html.TextBoxFor(m => m.UserName)
                    <br />
                    @Html.ValidationMessageFor(m => m.UserName)
                </div>
                <div class="editor-label">
                    Mật khẩu
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(m => m.Password)
                    <br />@Html.ValidationMessageFor(m => m.Password)
                </div>
                <div class="editor-label">
                    @Html.CheckBoxFor(m => m.RememberMe)
                    Ghi nhớ
                </div>
                <p>
                    <input type="submit" class="btn" value="Đăng nhập" />
                </p>
                <p>
                    @Html.ActionLink("Đăng ký", "Register", "Account") nếu bạn chưa có tài khoản.<br />
                    @Html.ActionLink("Quên mật khẩu?","ForgotPassword","Account")
                </p>
            </div>
        }
    </div>
</div>
<div class="ui-widget-overlay">
</div>
